#ifndef SETTINGS_H
#define SETTINGS_H

#include <QMainWindow>
#include <QFile>
#include <QPoint>
#include <QMouseEvent>
#include <QTcpSocket>

#include "changepassword.h"
#include "changecity.h"
#include "weatherlable.h"

namespace Ui {
class settings;
}

class settings : public QMainWindow
{
    Q_OBJECT

public:
    explicit settings(QWidget *parent = nullptr);
    ~settings();

public slots:
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void readyReadSlot();
    void disconnectedSlot();
    void changePassword(QString password);
    void changeCity(QString City, QString code);

signals:
    void changeCity(QString code);

private slots:
    void on_closeButton_clicked();
    void on_changepassword_clicked();
    void on_changecity_clicked();

private:
    Ui::settings *ui;
    QPoint mouseOff;
    // changepassword * c;
};

#endif // SETTINGS_H
